"use strict";

/**
 * @ngdoc function
 * @name jgappApp.controller:ProjectRecentpaymentlistCtrl
 * @description
 * # ProjectRecentpaymentlistCtrl
 * Controller of the jgappApp
 */
angular
  .module("jgappApp")
  .controller("ProjectRecentpaymentlistCtrl", function(
    $scope,
    $routeParams,
    openApi,
    localStorageService,
    PagingService
  ) {
    $scope.search = function() {
      var projectData= localStorageService.get("projectData");
      var param = {};
      param.projectId = $routeParams.projectId;
      param.pkId = $routeParams.id;
      param.endDate=projectData.endDate;
      $scope.taskList = new PagingService(openApi.paymentList, param);
    };
    $scope.search();
  });
